Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 vector-feature-night-mode-enabled skin-theme-clientpref-os vector-sticky-header-enabled" lang="fr" dir="ltr"><head>
<meta charset="UTF-8">
<title>Matplotlib</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://fr.wikipedia.org/wiki/Matplotlib"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/mediawiki.page.gallery.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Matplotlib rootpage-Matplotlib skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Matplotlib</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="fr" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="fr" dir="ltr"><div class="infobox_v3 infobox infobox--frwiki noarchive" style="width:260px">
<div class="entete icon informatique" style="color: #000000;"><style data-mw-deduplicate="TemplateStyles:r228712691">
/* start https://fr.wikipedia.org/ */


.mw-parser-output .entete.informatique{background-image:url("./_mw_/Picto.nfo.png")}


/* end https://fr.wikipedia.org/ */
</style>
<div>Matplotlib</div>
</div>
<div class="images">
</div>
<div class="hr" style="height:2px;"></div>
<div class="images">
</div>
<div class="legend">Exemples de graphes tracés avec matplotlib</div>
<table><caption style="color:#000000;">Informations</caption>

<tbody><tr>
<th scope="row">Créateur</th>
<td>
<span class="wd_p170">John D. Hunter <small>(<a href="https://en.wikipedia.org/wiki/John_D._Hunter" class="extiw external" title="en:John D. Hunter"><span class="indicateur-langue" title="Article sur Wikipédia en anglais">en</span></a>)</small></span></td>
</tr>

<tr>
<th scope="row"><a href="D%C3%A9veloppeur" title="Développeur">Développé par</a></th>
<td>
John Hunter<sup id="cite_ref-johnhunter_1-0" class="reference"><a href="#cite_note-johnhunter-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> <small>(jusqu'à sa mort en 2012)</small><br>Michael Droettboom et al.</td>
</tr>



<tr>
<th scope="row"> <a href="Version_d'un_logiciel" title="Version d'un logiciel">Première version</a>
</th>
<td>
<span class="wd_p571"><time>2003</time><sup id="cite_ref-wikidata-9cc1b98de0410751d536404aac41191241cc0f03_2-0" class="reference"><a href="#cite_note-wikidata-9cc1b98de0410751d536404aac41191241cc0f03-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></span></td>
</tr>

<tr>
<th scope="row"> <a href="Version_d'un_logiciel" title="Version d'un logiciel">Dernière version</a>
</th>
<td>
<span class="wd_p348">3.10.7 (<time class="nowrap" datetime="2025-10-08" data-sort-value="2025-10-08">8 octobre 2025</time>)<sup id="cite_ref-wikidata-b17d3ff6143fa1763a6b5ce97d71eb41b7cb44d1_3-0" class="reference"><a href="#cite_note-wikidata-b17d3ff6143fa1763a6b5ce97d71eb41b7cb44d1-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup></span></td>
</tr>

<tr>
<th scope="row"> <a href="Version_d'un_logiciel" title="Version d'un logiciel">Version avancée</a>
</th>
<td>
1.5.3 (<time class="nowrap" datetime="2016-09-08" data-sort-value="2016-09-08">8 septembre 2016</time>)</td>
</tr>

<tr>
<th scope="row"><a href="D%C3%A9p%C3%B4t_(informatique)" title="Dépôt (informatique)">Dépôt</a></th>
<td>
<span class="wd_p1324"><a rel="nofollow" class="external text" href="https://github.com/matplotlib/matplotlib">github.com/matplotlib/matplotlib</a></span></td>
</tr>

<tr>
<th scope="row"><a href="Assurance_qualit%C3%A9" title="Assurance qualité">Assurance qualité</a></th>
<td>
<span class="wd_p2992"><a href="Int%C3%A9gration_continue" title="Intégration continue">Intégration continue</a></span></td>
</tr>



<tr>
<th scope="row"> <a href="Langage_de_programmation" title="Langage de programmation">Écrit en</a>
</th>
<td>
<span class="wd_p277"><a href="C%2B%2B" title="C++">C++</a> et <a href="Python_(langage)" title="Python (langage)">Python</a></span></td>
</tr>

<tr>
<th scope="row"> <a href="Interface_graphique" title="Interface graphique">Interface</a>
</th>
<td>
<span class="wd_p1414"><a href="GTK_(bo%C3%AEte_%C3%A0_outils)" title="GTK (boîte à outils)">GTK</a> et <a href="Qt" title="Qt">Qt</a></span></td>
</tr>



<tr>
<th scope="row"><a href="Syst%C3%A8me_d'exploitation" title="Système d'exploitation">Système d'exploitation</a></th>
<td>
<span class="wd_p306">Multiplateforme <small>(<a href="https://www.wikidata.org/wiki/Q174666" class="extiw external" title="d:Q174666"><span class="indicateur-langue" title="Voir l'élément Wikidata correspondant">d</span></a>)</small></span></td>
</tr>

<tr>
<th scope="row"><a href="Plateforme_informatique" title="Plateforme informatique">Environnement</a></th>
<td>
<a href="Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a>, <a href="GNU/Linux" class="mw-redirect" title="GNU/Linux">GNU/Linux</a>, <a href="Berkeley_Software_Distribution" title="Berkeley Software Distribution">BSD</a></td>
</tr>





<tr>
<th scope="row"><a href="Format_de_donn%C3%A9es" title="Format de données">Formats</a> écrits</th>
<td>
<span class="wd_p1073"><a href="Portable_Network_Graphics" title="Portable Network Graphics">Portable Network Graphics</a>, <a href="Scalable_Vector_Graphics" title="Scalable Vector Graphics">SVG</a>, <a href="Encapsulated_PostScript" title="Encapsulated PostScript">Encapsulated PostScript</a> et <a href="Portable_Document_Format" title="Portable Document Format">Portable Document Format</a></span></td>
</tr>

<tr>
<th scope="row"><a href="Internationalisation_(informatique)" title="Internationalisation (informatique)">Langues</a></th>
<td>
anglais</td>
</tr>

<tr>
<th scope="row"> Type
</th>
<td>
bibliothèque <a href="Python_(langage)" title="Python (langage)">Python</a><sup id="cite_ref-licence_4-0" class="reference"><a href="#cite_note-licence-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></td>
</tr>



<tr>
<th scope="row"><a href="Licence_de_logiciel" title="Licence de logiciel">Licence</a></th>
<td>
type <a href="Licence_BSD" title="Licence BSD">BSD</a></td>
</tr>

<tr>
<th scope="row"><a href="Documentation_logicielle" title="Documentation logicielle">Documentation</a></th>
<td>
<span class="wd_p2078"><a rel="nofollow" class="external text" href="https://matplotlib.org/stable/contents.html">matplotlib.org/stable/contents.html</a></span></td>
</tr>

<tr>
<th scope="row"><a href="Site_web" title="Site web">Site web</a></th>
<td>
<a rel="nofollow" class="external free" href="http://matplotlib.org/">http://matplotlib.org/</a></td>
</tr>

</tbody></table>
<p class="mw-empty-elt">

</p>
</div>
<p><b>Matplotlib</b> est une bibliothèque du langage de programmation <a href="Python_(langage)" title="Python (langage)">Python</a> destinée à tracer et visualiser des données sous forme de graphiques<sup id="cite_ref-plot_5-0" class="reference"><a href="#cite_note-plot-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>. Elle peut être combinée avec les bibliothèques python de <a href="Sciences_num%C3%A9riques" title="Sciences numériques">calcul scientifique</a> <a href="NumPy" title="NumPy">NumPy</a> et <a href="SciPy" title="SciPy">SciPy</a><sup id="cite_ref-numpy_6-0" class="reference"><a href="#cite_note-numpy-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>. Elle fournit également une <a href="Interface_de_programmation" title="Interface de programmation">API</a> <a href="Programmation_orient%C3%A9e_objet" title="Programmation orientée objet">orientée objet</a>, permettant d'intégrer des graphiques dans des applications, utilisant des outils d'interface graphique polyvalents tels que <a href="Tkinter" title="Tkinter">Tkinter</a>, <a href="WxPython" title="WxPython">wxPython</a>, <a href="Qt" title="Qt">Qt</a> ou <a href="GTK_(bo%C3%AEte_%C3%A0_outils)" title="GTK (boîte à outils)">GTK</a>.
</p><p><i>Matplotlib</i> est distribuée librement et gratuitement sous une licence de style <a href="Licence_BSD" title="Licence BSD">BSD</a><sup id="cite_ref-licence_4-1" class="reference"><a href="#cite_note-licence-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>. Sa version stable actuelle (l2.0.1 en 2017, 3.5.0 en novembre 2021, 3.7.1 en mars 2023) est compatible avec la version 3 de Python.
</p><p>Plusieurs points rendent cette bibliothèque intéressante&nbsp;:
</p>
<ul><li>Export possible en de nombreux <a href="Format_de_donn%C3%A9es" title="Format de données">formats</a> <a href="Matrice_(math%C3%A9matiques)" title="Matrice (mathématiques)">matriciels</a> (<a href="Portable_Network_Graphics" title="Portable Network Graphics">PNG</a>, <a href="JPEG" title="JPEG">JPEG</a>...) et <a href="Vecteur" title="Vecteur">vectoriels</a> (<a href="PDF" class="mw-redirect" title="PDF">PDF</a>, <a href="SVG" class="mw-redirect" title="SVG">SVG</a>...)</li>
<li>Documentation en ligne en quantité, nombreux exemples disponibles sur internet</li>
<li>Forte communauté très active</li>
<li>Interface pylab&nbsp;: reproduit fidèlement la syntaxe <a href="MATLAB" title="MATLAB">MATLAB</a></li>
<li>Bibliothèque haut niveau&nbsp;: idéale pour le calcul interactif</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Exemples_de_graphiques">Exemples de graphiques</h2></div>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 155px">
<div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"></span></div>
<div class="gallerytext">Représentation 3D</div>
</li>
<li class="gallerybox" style="width: 155px">
<div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"></span></div>
<div class="gallerytext">Direction des vents stratosphériques au-dessus de Singapour</div>
</li>
<li class="gallerybox" style="width: 155px">
<div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"></span></div>
<div class="gallerytext">Croissance de la capacité des navires entre 1630 et 1875</div>
</li>
<li class="gallerybox" style="width: 155px">
<div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"></span></div>
<div class="gallerytext">Spirale logarithmique</div>
</li>
<li class="gallerybox" style="width: 155px">
<div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"></span></div>
<div class="gallerytext">Températures globales, CO<sub>2</sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub><sub></sub> atmosphérique et activité solaire depuis 1850.</div>
</li>
<li class="gallerybox" style="width: 155px">
<div class="thumb" style="width: 150px; height: 150px;"><span typeof="mw:File"></span></div>
<div class="gallerytext">Fonction de Rosenbrock</div>
</li>
</ul>
<div class="mw-heading mw-heading2"><h2 id="Notes_et_références"><span id="Notes_et_r.C3.A9f.C3.A9rences"></span>Notes et références</h2></div>
<ul><li><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr> Cet article est partiellement ou en totalité issu de l’article de Wikipédia en anglais intitulé <span class="">«&nbsp;<a class="external text" href="https://en.wikipedia.org/wiki/matplotlib?oldid=587944047">matplotlib</a>&nbsp;» <small>(<a class="external text" href="https://en.wikipedia.org/wiki/matplotlib?action=history">voir la liste des auteurs</a>)</small></span>.</li></ul>
<div class="references-small decimal" style=""><div class="mw-references-wrap"><ol class="references">
<li id="cite_note-johnhunter-1"><span class="mw-cite-backlink"><a href="#cite_ref-johnhunter_1-0">↑</a> </span><span class="reference-text"><span class="ouvrage" id="2012">«&nbsp;<a rel="nofollow" class="external text" href="http://linuxfr.org/news/deces-de-john-hunter-createur-de-matplotlib"><cite style="font-style:normal;">Décès de John Hunter, créateur de matplotlib</cite></a>&nbsp;», <time class="nowrap" datetime="2012-08-31" data-sort-value="2012-08-31">31 août 2012</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2014-01-22" data-sort-value="2014-01-22">22 janvier 2014</time>)</small></span></span>
</li>
<li id="cite_note-wikidata-9cc1b98de0410751d536404aac41191241cc0f03-2"><span class="mw-cite-backlink"><a href="#cite_ref-wikidata-9cc1b98de0410751d536404aac41191241cc0f03_2-0">↑</a> </span><span class="reference-text"><span class="ouvrage">«&nbsp;<a rel="nofollow" class="external text" href="https://matplotlib.org/users/license.html#copyright-policy"><cite style="font-style:normal;">https://matplotlib.org/users/license.html#copyright-policy</cite></a>&nbsp;»</span></span>
</li>
<li id="cite_note-wikidata-b17d3ff6143fa1763a6b5ce97d71eb41b7cb44d1-3"><span class="mw-cite-backlink"><a href="#cite_ref-wikidata-b17d3ff6143fa1763a6b5ce97d71eb41b7cb44d1_3-0">↑</a> </span><span class="reference-text"><span class="ouvrage">«&nbsp;<a rel="nofollow" class="external text" href="https://github.com/matplotlib/matplotlib/releases/tag/v3.10.7"><cite style="font-style:normal;"><span class="lang-en" lang="en">Release 3.10.7</span></cite></a>&nbsp;», <time class="nowrap" datetime="2025-10-08" data-sort-value="2025-10-08">8 octobre 2025</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2025-10-21" data-sort-value="2025-10-21">21 octobre 2025</time>)</small></span></span>
</li>
<li id="cite_note-licence-4"><span class="reference-text"><span class="ouvrage" id="2013"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr> «&nbsp;<a rel="nofollow" class="external text" href="http://matplotlib.org/users/license.html"><cite style="font-style:normal;" lang="en">License</cite></a>&nbsp;», <time class="nowrap" datetime="2013-10" data-sort-value="2013-10">octobre 2013</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2014-01-22" data-sort-value="2014-01-22">22 janvier 2014</time>)</small></span></span>
</li>
<li id="cite_note-plot-5"><span class="mw-cite-backlink"><a href="#cite_ref-plot_5-0">↑</a> </span><span class="reference-text"><span class="ouvrage" id="2009"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr> «&nbsp;<a rel="nofollow" class="external text" href="https://books.google.fr/books?id=4wMn27KSnTsC&amp;printsec=frontcover&amp;dq=Matplotlib&amp;hl=fr&amp;sa=X&amp;ei=H87fUpvZCpSw7Aa9loDQBw&amp;redir_esc=y#v=onepage&amp;q=Matplotlib&amp;f=false"><cite style="font-style:normal;" lang="en">Matplotlib for Python Developers - Preface</cite></a>&nbsp;», <time class="nowrap" datetime="2009-11" data-sort-value="2009-11">novembre 2009</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2014-01-22" data-sort-value="2014-01-22">22 janvier 2014</time>)</small></span></span>
</li>
<li id="cite_note-numpy-6"><span class="mw-cite-backlink"><a href="#cite_ref-numpy_6-0">↑</a> </span><span class="reference-text"><span class="ouvrage" id="2009"><abbr class="abbr indicateur-langue" title="Langue : anglais">(en)</abbr> «&nbsp;<a rel="nofollow" class="external text" href="https://books.google.fr/books?id=4wMn27KSnTsC&amp;printsec=frontcover&amp;dq=Matplotlib&amp;hl=fr&amp;sa=X&amp;ei=H87fUpvZCpSw7Aa9loDQBw&amp;redir_esc=y#v=onepage&amp;q=numpy&amp;f=false"><cite style="font-style:normal;" lang="en">Matplotlib for Python Developers - About dependencies</cite></a>&nbsp;», <time class="nowrap" datetime="2009-11" data-sort-value="2009-11">novembre 2009</time> <small style="line-height:1em;">(consulté le <time class="nowrap" datetime="2014-01-22" data-sort-value="2014-01-22">22 janvier 2014</time>)</small></span></span>
</li>
</ol></div>
</div>
<ul><li><a rel="nofollow" class="external text" href="http://www.google.fr/trends/explore?q=matplotlib#q=matplotlib&amp;cmpt=q">référence Google trends</a></li></ul>

<ul id="bandeau-portail" class="bandeau-portail"><li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"></span></span> <span class="bandeau-portail-texte">Sciences de l’information et bibliothèques</span> </span></li> <li><span class="bandeau-portail-element"><span class="bandeau-portail-icone"><span class="noviewer" typeof="mw:File"></span></span> <span class="bandeau-portail-texte">Portail des logiciels libres</span> </span></li> </ul></div><!--htdig_noindex--><div><div class="zim-footer">
Cet article est issu de <a class="external text" title="Dernière modification le 2024-02-12" href="https://fr.wikipedia.org/wiki/?title=Matplotlib&amp;oldid=212382805">Wikipédia</a>. Sauf mention contraire, le texte est disponible sous <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.fr">Creative Commons Attribution-Share Alike 4.0</a>. Des conditions supplémentaires peuvent s’appliquer aux fichiers multimédias.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>

</body></html>